package priv.yiyuan.example.design.product.view;

import priv.yiyuan.example.design.product.renderer.ProductRenderer;

/**
 * 详细商品视图
 * <p>
 * 桥接模式-扩展抽象部分
 */
public class DetailProductView extends ProductView {

    public DetailProductView(ProductRenderer productRenderer) {
        super(productRenderer);
    }

    @Override
    public void display(String productData) {
        System.out.println("Detail View: " + productRenderer.render("Detailed Product Info: " + productData));
    }

}
